# Tanım: Solus Projesinden basit GTK3 masaüstü deneyimi
# URL: http://solus-project.com/
# Paketçi: yasarciv67
# Gerekler: accountsservice gnome-bluetooth gnome-menus gnome-settings-daemon gnome-themes-standard gnome-session gnome-terminal gnome-control-center gnome-desktop gnome-backgrounds network-manager-applet nautilus libpeas mutter python vala gobject-introspection libwnck3 desktop-file-utils libgee gtk3 pulseaudio upower intltool meson vala polkit gtk-doc autoconf-archive ibus

isim=budgie-desktop
surum=10.3.1
devir=1
_helper_isim=budgie-helper
_helper_gitrev=3b52434b6d1cfe00c5bac1046d323813ce531a55
kaynak=("https://github.com/budgie-desktop/$isim/releases/download/v$surum/$isim-$surum.tar.xz"{,.asc}
https://codeload.github.com/City-busz/$_helper_name/tar.gz/$_helper_gitrev
        07b5ce0a12f8fadba9bb7941b0874db5493ef034.patch
        c8950712cb95a257e9b08fd11507070f0c221d39.patch)

derle() {
	mkdir build
bsdtar -xf $_helper_gitrev
	cd $isim-$surum
	patch -Np1 -i $SRC/07b5ce0a12f8fadba9bb7941b0874db5493ef034.patch
	patch -Np1 -i $SRC/c8950712cb95a257e9b08fd11507070f0c221d39.patch
	cd "$SRC/$_helper_name-$_helper_gitrev"
	NOCONFIGURE=1 ./autogen.sh
	cd $SRC/build
	meson --prefix=/usr --buildtype=release $SRC/$isim-$surum \
		--sysconfdir=/etc \
		-Dwith-gtk-doc=false

	ninja
	DESTDIR="$PKG" ninja install

	cd "$SRC/$_helper_name-$_helper_gitrev"
	./configure --prefix=/usr --sysconfdir=/etc --disable-schemas-compile --disable-Werror
	make
	make DESTDIR="$PKG" install
}
